package com.example;

/**
 * Copyright (C), 2019-2019, 成都飞酷科技有限公司
 * FileName: PostController
 * Author:   linrui
 * Date:     2021年09月14日 11:51
 * Description: PersonRepository
 * History:
 * <author>          <time>          <version>          <desc>
 * linrui           11:51         版本号              描述
 */

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

@RepositoryRestResource(collectionResourceRel = "people", path = "people")
public interface PersonRepository extends PagingAndSortingRepository<Person, Long> {

    List<Person> findByLastName(@Param("name") String name);

}